package com.dsp.bean;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.AccessType;

import com.core.util.BaseBean;

@Entity
@Table(name = "insure_results_sub")
public class InsureResultsSub extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2373524235588514242L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@AccessType(value = "property")
	@Column(name = "id")
	private Long id;

	@AccessType(value = "property")
	@Column(name = "main_id")
	private Long mainId;

	@AccessType(value = "property")
	@Column(name = "insure_type")
	private Integer insureType;

	@AccessType(value = "property")
	@Column(name = "insure_base")
	private BigDecimal insureBase;

	@AccessType(value = "property")
	@Column(name = "insure_money")
	private BigDecimal insureMoney;
	
	@AccessType(value = "property")
	@Column(name = "insure_item")
	private Long insureItem ;

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @return the mainId
	 */
	public Long getMainId() {
		return mainId;
	}

	/**
	 * @return the insureType
	 */
	public Integer getInsureType() {
		return insureType;
	}

	/**
	 * @return the insureBase
	 */
	public BigDecimal getInsureBase() {
		return insureBase;
	}

	/**
	 * @return the insureMoney
	 */
	public BigDecimal getInsureMoney() {
		return insureMoney;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @param mainId
	 *            the mainId to set
	 */
	public void setMainId(Long mainId) {
		this.mainId = mainId;
	}

	/**
	 * @param insureType
	 *            the insureType to set
	 */
	public void setInsureType(Integer insureType) {
		this.insureType = insureType;
	}

	/**
	 * @param insureBase
	 *            the insureBase to set
	 */
	public void setInsureBase(BigDecimal insureBase) {
		this.insureBase = insureBase;
	}

	/**
	 * @param insureMoney
	 *            the insureMoney to set
	 */
	public void setInsureMoney(BigDecimal insureMoney) {
		this.insureMoney = insureMoney;
	}

	/**
	 * @return the insureItem
	 */
	public Long getInsureItem() {
		return insureItem;
	}

	/**
	 * @param insureItem the insureItem to set
	 */
	public void setInsureItem(Long insureItem) {
		this.insureItem = insureItem;
	}
}
